package com.service;




import com.dao.UserDao1;
import com.po.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


//@Service("userService")
@Service
@Transactional

public class UserServiceImpl implements UserService{


	@Autowired
	private UserDao1 userDao1;
	//	有参数是不要忘了加@Param("")
	@Override
	public User selectUserByname(@Param("name")String name, @Param("password")String password) {
		return userDao1.selectUserByname( name,password);
	}
}
